package com.zmm.zebulon.module.infra.biz.api.logger;

import com.zmm.zebulon.module.infra.api.api.ApiErrorLogApi;
import com.zmm.zebulon.module.infra.api.api.dto.ApiErrorLogCreateReqDTO;
import com.zmm.zebulon.module.infra.biz.service.logger.ApiErrorLogService;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.annotation.Resource;

/**
 * description: API 访问日志的 API 接口
 *
 * @author zebulon
 * package com.zmm.zebulon.module.infra.biz.api.logger
 * name: ApiErrorLogApiImpl
 * date 2024/1/7 20:07
 */
@Service
@Validated
public class ApiErrorLogApiImpl implements ApiErrorLogApi {

    @Resource
    private ApiErrorLogService apiErrorLogService;

    @Override
    public void createApiErrorLog(ApiErrorLogCreateReqDTO createDTO) {
        apiErrorLogService.createApiErrorLog(createDTO);
    }

}
